 <div class="span-19">


                <div id="content">

                    <h1>Set Vehicle Inter</h1>
                    <div class="form">
                        <?php if (isset($error)): ?>
                            <div class="flash-error">
                                <ul>
                                    <?php echo $error; ?>
                                </ul>
                            </div>
                        <?php endif; ?>
                        <form method="post" action="<?php echo base_url('line/vehicle/'.$id) ?>">
                            <div class="row">
                                <label for="Line_name" class="required">Line Name: <?php echo $code; ?></label>
                                <label for="Line_name" class="required">Vehicles Available:</label>
                                <select name="sltVehicle">
                                    <?php
                                        foreach ($vehicle as $item) {
                                            if ($item['line_id'] == 0) {
                                                echo '<option value="' .$item['id']. '">' .$item['name']. '</option>';
                                            }
                                        }
                                    ?>
                                </select>
                            </div>
                            <div class="row">
                                <input type="submit" name="yt0" value="Set Vehicle"/>
                            </div>
                        </form>
                    </div>
                    <table>
                        <tr>
                            <th>#</th>
                            <th>Name</th>
                            <th>Option</th>                            
                        </tr>
                        <?php
                            $count=0;
                            foreach ($vehicle_line as $value) {
                                $count++;
                                echo '<tr>';
                                echo "<td>$count</td>";
                                echo "<td>$value[name]</td>";
                                echo '<td><a href="' .base_url('line/inter/'.$id."/$value[id]"). '">Delete</a></td>';
                                echo '</tr>';
                            }
                        ?>
                    </table>
                </div> <!-- content -->
</div>
<div class="span-5 last">
    <div id="sidebar">
        <div class="portlet" >
            <div class="portlet-decoration">
                <div class="portlet-title">Operations</div>
            </div>
            <div class="portlet-content">
                <ul class="operations" >
                    <li><a href="<?php echo base_url();?>line/display">List Line</a></li>
                    <li><a href="<?php echo base_url();?>line/index">Create Line</a></li>
                    <li><a href="<?php echo base_url();?>line/update/<?php echo $id; ?>">Update Line</a></li>
                    <li><a href="<?php echo base_url();?>line/delete/<?php echo $id; ?>" onclick="return confirm('Do you want to delete this line?');">Delete Line</a></li>
                    <li><a href="<?php echo base_url();?>line/manage">Manage Line</a></li>
                    <li><a href="<?php echo base_url();?>line/startend/<?php echo $id; ?>">Set Station Start-End</a></li>
                    <li><a href="<?php echo base_url();?>line/inter/<?php echo $id; ?>">Set Station Inter</a></li>
                    <li><a href="<?php echo base_url();?>line/vehicle/<?php echo $id; ?>">Set Vehicles</a></li>
                </ul>
            </div>
        </div>	
    </div><!-- sidebar -->
</div>
